package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.ProductCategory;
import com.ysd.mapper.ProductCategoryMapper;
import com.ysd.service.ProductCategoryService;
@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
	
	@Autowired
	private ProductCategoryMapper pMapper;
	
	@Override
	public List<ProductCategory> getCategory(ProductCategory pc) {
		// TODO Auto-generated method stub
		return pMapper.getCategory(pc);
	}

	@Override
	public int getCount(ProductCategory pc) {
		// TODO Auto-generated method stub
		return pMapper.getCount(pc);
	}

	@Override
	public int deleteCategory(ProductCategory pc) {
		// TODO Auto-generated method stub
		return pMapper.deleteCategory(pc);
	}

	@Override
	public int updateCategory(ProductCategory pc) {
		// TODO Auto-generated method stub
		return pMapper.updateCategory(pc);
	}

	@Override
	public int insertCategory(ProductCategory pc) {
		// TODO Auto-generated method stub
		return pMapper.insertCategory(pc);
	}
	
}
